#include "smileslistmodel.h"

SmilesListModel::SmilesListModel(QObject *parent) : ListModel(new SmilesItemModel, parent)
{
}


void SmilesListModel::append( SmilesItemModel *item ) {
    this->appendRow( item );
    /*QString key = item->text();
    if( !(key.isEmpty() || key.isNull()) ) {
        bufOfSmiles[ item->text() ] = item->picture();
    }*/
}

/*void SmilesListModel::remove( int index ) {
    this->removeRow( index );
}*/

int SmilesListModel::count() {
    return this->rowCount();
}

void SmilesListModel::clearList()
{
    this->clear();
    //bufOfSmiles.clear();
}
